//@flow

/**
 * 数据库操作，异步操作，用到操作结果
 */
export type OpenSuccess = {status:0,message:'打开数据库成功'};
export type OpenFail	= {status:1,message:string}
export type OpenType	= OpenSuccess | OpenFail ;

export type AddSuccess  = {status:0,message:'写入数据库成功'};
export type AddFail	    = {status:1,message:string}
export type AddType	    = AddSuccess | AddFail ;